{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "35a223d4",
   "metadata": {},
   "outputs": [],
   "source": [
    "def fincal_process_mix():\n",
    "    all_arr_mix = []\n",
    "    for i in range(len(all_arr_domain )):\n",
    "        arr_mix = []\n",
    "        for j in range(len(all_arr_domain [i])):\n",
    "            d = all_arr_domain [i][j]\n",
    "            inte = arr_intent[i][j][0]\n",
    "            s = d+inte\n",
    "            arr_mix.append(s)\n",
    "        arr_mix = list(set(arr_mix))\n",
    "        all_arr_mix.append(arr_mix)\n",
    "    return all_arr_mix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "be3ec96f",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e0f7145f",
   "metadata": {},
   "outputs": [],
   "source": [
    "def got_final():\n",
    "    arr = []\n",
    "    arr_1 = []\n",
    "    for i in all_arr_mix:\n",
    "        arr_1 = []\n",
    "        for j in i:\n",
    "            if j in final_chane_ask.keys():\n",
    "                arr_1.append(final_chane_ask[j])\n",
    "        if arr_1 ==[]:\n",
    "            arr_1.append(\"其他\")\n",
    "        arr.append(arr_1)\n",
    "    return arr"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "bert1",
   "language": "python",
   "name": "bert1"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
